<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="cc.woori.mobile.bean.*" %>
<%@ page import="cc.woori.mobile.PMF" %>
<%@ page import="javax.jdo.*" %>
<%@ page import="com.google.appengine.api.datastore.KeyFactory" %>
<%

PersistenceManager pm = PMF.get().getPersistenceManager();
PodCastEntity pce = null;
Extent<PodCastEntity> ext = pm.getExtent(PodCastEntity.class);
Iterator<PodCastEntity> iterator = ext.iterator();
if (iterator.hasNext()) {
pce = iterator.next();
}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<img src="http://images.apple.com/itunes/podcasts/images/itunespodcast_overlay20071029.jpg" />
	<br />
	
    <form name="input" action="/admin/podcast/register" method="post">    
    	<table>
          <tr>
	        <td>Pod Cast상에서 표시되는 제목</td>
	        
	      </tr>
	      <tr>
	        <td><input type="text" name="title" size="80" value="<%=(pce!=null)?pce.getTitle():"우리들 교회 주일설교" %>"/><br/></td>
	      </tr>
          
          <tr>
	        <td>Pod Cast상에서 표시되는 부 제목</td>  
	      </tr>
	      <tr>
	        
	        <td><input type="text" name="subtitle" size="160" value="<%=(pce!=null)?pce.getSubtitle():"우리들 교회" %>"/><br/></td>
	      </tr>
	      	      
          <tr>
	        <td>교회 웹 주소 </td>  
	      </tr>
	      <tr>
	        
	        <td><input type="text" name="web_url" size="80" value="<%=(pce!=null)?pce.getLink():"http://www.woori.cc" %>"/><br/></td>
	      </tr>
	      
          <tr>
	        <td>필자</td>  
	      </tr>
	      <tr>
	        
	        <td><input type="text" name="author" size="80"  value="<%=(pce!=null)?pce.getAuthor():"김양재 목사님" %>"/><br/></td>
	      </tr>
	      
          <tr>
	        <td>요약</td>  
	      </tr>
	      <tr>
	        
	        <td><TEXTAREA name="summary" rows="10" cols="80"> <%=(pce!=null)?pce.getSummary():"우리들 교회 요약 내용" %></TEXTAREA><br/></td>
	      </tr>

	      <tr>
	        <td>설명</td>  
	      </tr>
	      <tr>
	        
	        <td><TEXTAREA name="description" rows="10" cols="80"> <%=(pce!=null)?pce.getDescription():"우리들 교회 설명" %></TEXTAREA><br/></td>
	      </tr>	      
	      	      
          <tr>
	        <td>관리자 이름 </td>  
	      </tr>
	      <tr>
	        
	        <td><input type="text" name="owner" size="80"  value="<%=(pce!=null)?pce.getOwner():"전선규" %>"/><br/></td>
	      </tr>

          <tr>
	        <td>관리자 이메일 주소 </td>  
	      </tr>
	      <tr>
	        
	        <td><input type="text" name="owner_email" size="120"  value="<%=(pce!=null)?pce.getOwner_email():"admin@woori.cc" %>"/><br/></td>
	      </tr>

          <tr>
	        <td>iTunes에서 나타날 이미지 주소 <br /> 최소 사이즈(600 x 600) <br /> 이미지 포멧 : jpg </td>  
	      </tr>
	      <tr>
	        
	        <td><input type="text" name="img_url" size="360"  value="<%=(pce!=null)?pce.getImg_url():"http://" %>"/><br/></td>
	      </tr>
	      

	      <tr>
      		<td colspan="2"><input type="submit" value="등록" /></td>
      	</tr>
		</table>
    </form>
</body>
</html>